package com.uniview.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 资源扫描配置
 *
 * @author LYD
 * @date 2018/7/29
 */
@ConfigurationProperties(prefix = "miro")
@Component
public class OpenScanProperties {

    /**
     * 请求资源注册到API列表
     */
    @Value("${miro.scan.registerRequestMapping}")
    private Boolean registerRequestMapping = false;
    @Value("${miro.filter.url}")
    private String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isRegisterRequestMapping() {
        return registerRequestMapping;
    }

    public void setRegisterRequestMapping(boolean registerRequestMapping) {
        this.registerRequestMapping = registerRequestMapping;
    }


}
